﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="a_manager.ascx.cs" Inherits="administrator_uc_admin_a_manager" %>
<script type="text/javascript">
    function rblSelectedValue(rbl) {
        var selectedvalue = $("#" + rbl.id + " input:radio:checked").val();
        if (selectedvalue == 0) {
            $("#<%= txtLockedReason.ClientID %>").removeAttr("disabled");
            var mytext = document.getElementById("<%= txtLockedReason.ClientID %>");
            mytext.focus();
        }
        else {
            $("#<%= txtLockedReason.ClientID %>").attr("disabled", "disabled");
        }
    }
    
</script>
<script>
    $(document).ready(function () {
        $("#<%= txtLockedReason.ClientID %>").attr("disabled", "disabled");        
    });   
</script>
<table cellspacing="1" class="classtable">
    <tr>
        <td class="classtitle" colspan="2">
            THÊM MỚI
        </td>
    </tr>
    <tr>
        <td class="classmessage" colspan="2">
            <asp:Label ID="lblMessage" runat="server"></asp:Label>
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Tên đăng nhập:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtUserName" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtUserName" ErrorMessage="(*)"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Mật khẩu:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtPassword" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtPassword" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            </td>           
    </tr> 
    <tr>
        <td class="classcolleft">
           Xác nhận mật khẩu:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtRePassword" runat="server" Width="200px" 
                TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtRePassword" ErrorMessage="(*)"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="txtPassword" ControlToValidate="txtRePassword" 
                ErrorMessage="Xác nhận pass lỗi"></asp:CompareValidator>
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Email:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtEmail" ErrorMessage="Invalid Email" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Họ tên:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtFullName" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Địa chỉ:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtAddress" runat="server" Width="300px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Ngày sinh:</td>
        <td class="classcolright">
            ngày 
            <asp:DropDownList ID="DropDownListDay" runat="server" Width="40px">
                <asp:ListItem Selected="True" Value="1">01</asp:ListItem>
                <asp:ListItem Value="1">02</asp:ListItem>
                <asp:ListItem Value="3">03</asp:ListItem>
                <asp:ListItem Value="4">04</asp:ListItem>
                <asp:ListItem Value="5">05</asp:ListItem>
                <asp:ListItem Value="6">06</asp:ListItem>
                <asp:ListItem Value="7">07</asp:ListItem>
                <asp:ListItem Value="8">08</asp:ListItem>
                <asp:ListItem Value="9">09</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                <asp:ListItem>13</asp:ListItem>
                <asp:ListItem>14</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>16</asp:ListItem>
                <asp:ListItem>17</asp:ListItem>
                <asp:ListItem>18</asp:ListItem>
                <asp:ListItem>19</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>21</asp:ListItem>
                <asp:ListItem>22</asp:ListItem>
                <asp:ListItem>23</asp:ListItem>
                <asp:ListItem>24</asp:ListItem>
                <asp:ListItem>25</asp:ListItem>
                <asp:ListItem>26</asp:ListItem>
                <asp:ListItem>27</asp:ListItem>
                <asp:ListItem>28</asp:ListItem>
                <asp:ListItem>29</asp:ListItem>
                <asp:ListItem>30</asp:ListItem>
                <asp:ListItem>31</asp:ListItem>
            </asp:DropDownList>
            tháng 
            <asp:DropDownList ID="DropDownListMonth" runat="server" Width="40px">
                <asp:ListItem Value="1">01</asp:ListItem>
                <asp:ListItem Value="2">02</asp:ListItem>
                <asp:ListItem Value="3">03</asp:ListItem>
                <asp:ListItem Value="4">04</asp:ListItem>
                <asp:ListItem Value="5">05</asp:ListItem>
                <asp:ListItem Value="6">06</asp:ListItem>
                <asp:ListItem Value="7">07</asp:ListItem>
                <asp:ListItem Value="8">08</asp:ListItem>
                <asp:ListItem Value="9">09</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
            </asp:DropDownList>
            năm
            <asp:TextBox ID="txtYear" CssClass="classtextsort" runat="server" Width="70px"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                ErrorMessage="(1900-&gt;2012)" ControlToValidate="txtYear" MaximumValue="2012" 
                MinimumValue="1900" Type="Integer"></asp:RangeValidator>
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            Giới tính:</td>
        <td class="classcolright">
            <asp:RadioButtonList ID="rdSex" runat="server" 
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Nam</asp:ListItem>
                <asp:ListItem Value="0">Nữ</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>  
    <tr>
        <td class="classcolleft">
            Trạng thái:</td>
        <td class="classcolright">
            <asp:RadioButtonList ID="rdActive" runat="server" onclick="javascript:rblSelectedValue(this);"
                RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">Hoạt động</asp:ListItem>
                <asp:ListItem Value="0">Khóa</asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
     <tr>
        <td class="classcolleft">
            Lí do khóa:</td>
        <td class="classcolright">
            <asp:TextBox ID="txtLockedReason" runat="server" Width="300px" 
                TextMode="MultiLine"></asp:TextBox>           
        </td>
    </tr>
    <tr>
        <td class="classcolleft">
            &nbsp;</td>
        <td class="classcolright">
            <asp:LinkButton ID="lbtAddNewItem" runat="server" onclick="lbtAddNewItem_Click">
            <img src="../images/icons/icon_add.gif" border="0px" /> <b>Thêm Mới</b>
            </asp:LinkButton>
            ||
            <asp:LinkButton ID="lbtCloseForm" runat="server" 
                OnClientClick="javascript:CloseWindows();" CausesValidation="False">
            <img src="../images/icons/icon_close.jpg" border="0px" /><b>Đóng Lại</b>
            </asp:LinkButton>
         </td>
    </tr>
</table>

